<template>
  <div>
    {{ time }}
  </div>
</template>

<script setup lang="ts">
import {onMounted, ref} from 'vue'
import {Events} from "@wailsio/runtime";


const time = ref<string>('Listening for Time event...')


onMounted(() => {
  Events.On('time', (timeValue) => {
    time.value = timeValue.data;
  });
})

defineProps({})

</script>


